﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
 * WYMeditor : what you see is What You Mean web-based editor
 * Copyright (C) 2007 H.O.net - http://www.honet.be/
 * Dual licensed under the MIT (MIT-license.txt)
 * and GPL (GPL-license.txt) licenses.
 *
 * For further information visit:
 *        http://www.wymeditor.org/
 *
 * File Name:
 *        advanced-fr.html
 *        Editor integration example (fr).
 *        See the documentation for more info.
 *
 * File Authors:
 *        Jean-Francois Hovinne (jf.hovinne@wymeditor.org)
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>WYMeditor</title>
<link rel="stylesheet" type="text/css" media="screen" href="../wymeditor/skins/default/screen.css" />
<script type="text/javascript" src="../jquery/jquery.js"></script>
<script type="text/javascript" src="../wymeditor/lang/fr.js"></script>
<script type="text/javascript" src="../wymeditor/jquery.wymeditor.js"></script>
<script type="text/javascript" src="../wymeditor/jquery.wymeditor.explorer.js"></script>
<script type="text/javascript" src="../wymeditor/jquery.wymeditor.mozilla.js"></script>
<script type="text/javascript" src="../wymeditor/jquery.wymeditor.opera.js"></script>
<script type="text/javascript" src="../wymeditor/jquery.wymeditor.safari.js"></script>

<script type="text/javascript">



jQuery(function() {

    jQuery('.wymeditor').wymeditor({

      //options
      
      lang: 'fr',
      
      xhtmlParser: 'xhtml_parser.js',
      cssParser:   'wym_css_parser.js',
        
      //classes panel
      classesItems: [
        {'name': 'date', 'title': 'PARA: Date', 'expr': 'p'},
        {'name': 'important', 'title': 'PARA: Important', 'expr': 'p'}
      ],
      
      //editor css values for visual feedback
      editorStyles: [
        {'name': '.date',
         'css': 'background-color: #ff9; border: 2px solid #ee9;'},
        {'name': '.important',
         'css': 'color: red; font-weight: bold; border: 2px solid red;'}
      ],
      
      //dialogs css values
      dialogStyles: [
        {'name': '.date', 'css': 'color: #ccf;'},
        {'name': '.important', 'css': 'color: red; font-weight: bold;'}
      ],
      
      //postInit
      postInit: function(wym) {
        jQuery(wym._box).find(wym._options.containersSelector)
        .removeClass('wym_dropdown').addClass('wym_panel')
        .find('H2>span').remove();
      }
    });
});

</script>


</head>

<body>
<h1>Example d'intégration de WYMeditor</h1>
<p><a href="http://www.wymeditor.org/">WYMeditor</a> est un éditeur XHTML WYSIWYM pour le web.</p>
<form method="post" action="">
<textarea class="wymeditor"></textarea>
<input type="submit" class="wymupdate" />
</form>

<p>
<a href="http://sourceforge.net/projects/wym-editor">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=148869&amp;type=1" border="0" alt="SourceForge logo" title="SourceForge" />
</a>
</p>

</body>

</html>
